﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Dln.Common.Helper;
using Dln.Model;

public partial class Page_日常工作_WorkSoultionAdd : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            setArticleType();
    }

    private void setArticleType()
    {
        var problemTypesList = SqlHelper.Context.From<ProblemTypes>().ToList();
        if (problemTypesList != null && problemTypesList.Count > 0)
        {
            //查询时
            selectArticleType.DataSource = problemTypesList;
            selectArticleType.DataTextField = "TypeName";
            selectArticleType.DataValueField = "Id";
            selectArticleType.DataBind();
        }
    }
}